x86: Fix S3 resume for HPET MSI IRQ case
authorWei Gang <gang.wei@intel.com>
Mon, 14 Feb 2011 10:41:12 +0000 (10:41 +0000)
committerWei Gang <gang.wei@intel.com>
Mon, 14 Feb 2011 10:41:12 +0000 (10:41 +0000)
commitf2cc80444550378a3b202242b2a090d20b5d7dab
tree005fa09910d9be15c43a2634e46685511d47848c
parentfb6b4152c90048b2d1014f2762f9f3130c5aa57f
x86: Fix S3 resume for HPET MSI IRQ case

Jan Beulich found that for S3 resume on platforms without ARAT feature
but with MSI capable HPET, request_irq() will be called in
hpet_setup_msi_irq() for irq already setup(no release_irq() called
during S3 suspend), so that always falling back to using
legacy_hpet_event.

Fix it by conditional calling request_irq() for 4.1. Planned to split
the S3 resume path from booting path post 4.1, as Jan suggested.

Signed-off-by: Wei Gang <gang.wei@intel.com>
Acked-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/hpet.c